all:test.exe

test.exe:./getopt_win32.obj ./test.obj getopt_win32.h
	link /nologo ./getopt_win32.obj ./test.obj \
		/out:test.exe

{.}.c{.}.obj:
	cl /nologo /W3 /D _DEBUG /MTd /c $<

clean:
	rm -rf *.obj

cleanall:clean
	rm -rf *.exe

